package com.ruoyi.system.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 普通用户对象 tb_user
 * 
 * @author ruoyi
 * @date 2025-07-11
 */
public class CommonUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 昵称，默认是用户id */
    @Excel(name = "昵称，默认是用户id")
    private String nickName;

    /** 信用分 */
    @Excel(name = "信用分")
    private Long score;

    /** 信用额度 */
    @Excel(name = "信用额度")
    private Long creditLimit;

    /** 人物头像 */
    @Excel(name = "人物头像")
    private String icon;

    /** 地区地址 */
    @Excel(name = "地区地址")
    private String address;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 性别，1男2女 */
    @Excel(name = "性别，1男2女")
    private Integer gender;

    /** 工作类型 */
    @Excel(name = "工作类型")
    private String job;

    /** 收入 */
    @Excel(name = "收入")
    private Long income;

    /** 普通用户详情信息 */
    private List<CommonUserInfo> commonUserInfoList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }

    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }

    public void setCreditLimit(Long creditLimit) 
    {
        this.creditLimit = creditLimit;
    }

    public Long getCreditLimit() 
    {
        return creditLimit;
    }

    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }

    public void setGender(Integer gender) 
    {
        this.gender = gender;
    }

    public Integer getGender() 
    {
        return gender;
    }

    public void setJob(String job) 
    {
        this.job = job;
    }

    public String getJob() 
    {
        return job;
    }

    public void setIncome(Long income) 
    {
        this.income = income;
    }

    public Long getIncome() 
    {
        return income;
    }

    public List<CommonUserInfo> getCommonUserInfoList()
    {
        return commonUserInfoList;
    }

    public void setCommonUserInfoList(List<CommonUserInfo> commonUserInfoList)
    {
        this.commonUserInfoList = commonUserInfoList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("nickName", getNickName())
            .append("score", getScore())
            .append("creditLimit", getCreditLimit())
            .append("icon", getIcon())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("address", getAddress())
            .append("age", getAge())
            .append("gender", getGender())
            .append("job", getJob())
            .append("income", getIncome())
            .append("commonUserInfoList", getCommonUserInfoList())
            .toString();
    }
}
